import request from '@/request/index.js'

// 登录
export const login = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

// 注册
export const register = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}

// 退出登录
export const logout = () => {
  return request({
    url: '/logout',
    method: 'post'
  })
}
